package com.ftg.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ftg.mall.base.entity.pms.Brand;
import com.ftg.mall.mapper.BrandMapper;
import com.ftg.mall.service.IBrandService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 品牌表 服务实现类
 * </p>
 *
 * @author kangjx
 * @since 2022-11-18
 */
@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand> implements IBrandService {

    @Override
    public boolean updateProductCount(int id) {
//        根据 添加商品时调用  更新数量
        return false;
    }

    @Override
    public boolean updateProductComment(int id) {
        //添加商品 评论 时调用更新数量
        return false;
    }

    @Override
    public List<Brand> findOneByName(String name) {
        return this.baseMapper.findOneByName(name);
    }
}
